package com.second.mapper;

import com.second.model.pojo.FCouponUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;


@Repository //持久层组件标识
public interface IFCouponUserMapper extends JpaRepository<FCouponUser,Integer> {


    List<FCouponUser> findAllByUserId(Integer UserId);
    FCouponUser getById(Integer Id);

    List<FCouponUser> findAllByCouponIdAndStatus(Integer UserId,Integer Status);
}
